package com.chijun.mform.field.impl;


import android.content.Context;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.view.ViewGroup;

import com.chijun.mform.R;
import com.chijun.mform.field.BaseField;

import io.reactivex.ObservableEmitter;

/**
 * 单行文字
 * @author 驰珺
 * whechat   : chijun9
 * create at : 2024/12/23 15:44
 */
public class FieldFor00FormId extends BaseField {
    public FieldFor00FormId(){
        super();
    }

    @Override
    public View getWritelView(Context context, WriteFormClass writeFormClass) {
        return writeFormClass.view;
    }


    @Override
    protected View getShowFullView(Context context, FullClass fullModel) {
        fullModel.loadFullDataTitle.setTitle("编号");
        fullModel.loadContent.setText(String.valueOf(fullModel.formField.getFormId()));
        fullModel.loadContent.setKeyListener(null);
        fullModel.loadContent.setFocusable(false);
        fullModel.loadContent.setTextIsSelectable(true);//可选择
        return fullModel.layout;
    }


    @Override
    protected View getFieldInstallView(Context context, InstallClass installClass) {
        return installClass.v;
    }
}
